package com.panasonic.web.vo;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @className: CmsArticleTopChange
 * @description: TODO 类描述
 * @author: laiweifeng
 * @date: 2021/11/16
 **/
@Data
public class CmsArticleTopChangeVo {

    @NotNull(message = "ids cannot be null")
    private Long[] ids;

    /**
     * 0 是置顶  1 取消置顶
     */
    @NotNull(message = "不能为空")
    @Max(value = 1,message = "数值不正却")
    @Min(value = 0,message = "数值不正却")
    private Integer top;
}
